package day020;

import java.io.*;

public class ConversionDemo2 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("D:\\day020\\GBK编码的文件.txt"));
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("D:\\day020\\UTF编码的文件.txt"));

        int ch;
        while ((ch = isr.read()) != -1) {
            osw.write(ch);
        }

        isr.close();
        osw.close();
    }
}
